﻿using System.Collections.Generic;
using System.IO;

namespace xycn.pluginsupport.ControllerPlugins
{
    /// <summary>
    /// 上传文件
    /// </summary>
    public class UploadFile
    {
        /// <summary>
        /// 
        /// </summary>
        public string contentType = "";

        /// <summary>
        /// 文件名
        /// </summary>
        public string fileName = "";

        /// <summary>
        /// 文件长度
        /// </summary>
        public long length = 0;

        /// <summary>
        /// 名称
        /// </summary>
        public string name = "";

        /// <summary>
        /// 用于读取的上传文件流，该流需要由使用者手动释放
        /// </summary>
        public Stream fileReaderStream;
    }

    /// <summary>
    /// 上传文件列表
    /// </summary>
    public class UploadFiles
    {
        /// <summary>
        /// 上传文件数量
        /// </summary>
        public int FileCount { get { return uploadFiles.Count; } }

        //上传文件列表信息
        public List<UploadFile> uploadFiles = new List<UploadFile>();


    }
}
